
<?php
include  $_SERVER['DOCUMENT_ROOT'] . "/modules/config/index.php";
include  $_SERVER['DOCUMENT_ROOT'] . "/modules/info_bar/publication.php";

function show_article_edit() {
    echo<<<STOP
        <!--button onclick="javascript:admin_{$_REQUEST['operation']}_article('{$_REQUEST['article']}');">{$_REQUEST['operation']} {$_REQUEST['article']}</button-->

        <div id=toolbar_edit>
            <button onclick="document.execCommand('bold',null,false);"><b>Bold</b></button>
            <button onclick="create_link ();">Add Link</button>
            <button onclick="document.execCommand('unlink',null,false);">Unlink</button>
            <button onclick="insert_image ();">Insert Image</button>


            <div>
                <hr>
                <button onclick="document.execCommand('undo',null,false);">Undo</button>
                <button onclick="document.execCommand('redo',null,false);">Redo</button>
                <hr>
                <button id=save_article onclick="javascript:admin_save_article();">Save Article</button>
                <button id=save_section onclick="javascript:admin_save_section();">Save Section</button>
        
            </div>
        </div>
STOP;

    echo<<<STOP
    </div>
    <button id=save_navmenu onclick="javascript:admin_save_navmenu();">Save Navigation</button>
    <div id=admin_bottom_box>
    <div><strong>Info Bar Data</strong></div>
STOP;
}

function toolbar_footer () {

echo<<<STOP
        <!--button id=admin_disable_links onclick="javascript:admin_disable_links ();">Edit Page</button-->
        <!--button id=admin_enable_links onclick="javascript:admin_enable_links ();">Cancel</button-->
        <button id=admin_log_out onclick="javascript:do_admin_logout ();">Log Out</button>
				<!--/div-->
        <!--div id=toolbar_instructions>Click "Edit Page" and double click on an element to edit it</div-->
    
STOP;

}


function show_toolbar ($area, $section, $file) {
global $config;

$icons_size = $config["icon_size"];

include $_SERVER['DOCUMENT_ROOT'] . "/modules/toolbar/templates/create/index.html";
/*
echo<<<STOP
<div id=admin_toolbar>
    <div id=admin_message></div>
    <div>
STOP;



//if ($_REQUEST['article'] != "") show_article_edit();
//$remove_box = show_remove_box($area, $section, $file);
//show_info_select($remove_box,$area,$section,$file);
toolbar_footer ();

echo<<<STOP
</div>
</div>
STOP;
*/
}



?>
